package com.xyy.yueshijia;

import android.app.Application;
import android.content.Context;
import android.content.Intent;

import com.xyy.yueshijia.base.BaseApp;

public class App extends BaseApp {

    //App  Context
    //Activity、Service Context
    //1 全局
    //2 生命周期长
    public static Context context;

    private static Context instance;

    public static Context getInstance() {
        return instance.getApplicationContext();
    }
    @Override
    public void onCreate() {
        super.onCreate();
        context=this;
        instance=this;
    }
}
